﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;

namespace OPCService.Model
{
    class Item
    {
        public ObjectId _id { get; set; }
        public string tag_name { get; set; }
        [BsonIgnore]
        public string description { get; set; }
        public double value { get; set; }

        [BsonDateTimeOptions(Kind = DateTimeKind.Local)]
        public DateTime? datetime { get; set; }
        public string quality { get; set; }
        [BsonIgnore]
        public bool IsInsertDB { get; set; } = false;
    }
}
